package lab02.Test06;

/**
 * Created by LENOVO on 2017/10/15.
 */
public class Triangle {
    double a;
    double b;
    double c;
    double high;
    boolean judge;
    double area() {
        high = ((double) (a + b+ c)) / 2;
        return (float) Math.sqrt(high * (high - b) * (high - c));
    }
    double perimeter() {
        return a + b+ c;
    }
    void isJudge() {
        if (a + b < c|| a+ c< b|| b+ c < a) {
            System.out.println("不可以构成三角形");
        } else System.out.println("可以构成三角形");
    }
    public static void main(String[] args) {
    }
}
